import React, { Component } from 'react'

class my extends Component {
   // 盗墓笔记测试接口 axios
  allList = () => {
    let data = `盗墓笔记`
    this.$http.post(`/novelSearchApi?name=${data}`).then(res => {
      console.log(res)
    })
  }
  componentWillMount() {
    let time = '20190105 090522'
    let timeA = this.$moment(time).format('YYYY-MM-DD HH:mm:ss')
    console.log(timeA)
    this.allList()
  }
  render() {
    return (
      <div className="my">
        my我的
      </div>
    )
  }
}

export default my
